package main

import (
	"flag"
	"os"
)

var (
	help                    = flag.Bool("h", false, "help")
	server                  = flag.String("s", "", "ssh server address")
	user                    = flag.String("user", "", "ssh username")
	password                = flag.String("pwd", "", "ssh password")
	httpProxyRemoteBindAddr = flag.String("http-proxy", "", "http proxy remote bind address")
	timeout                 = flag.Int("timeout", 30, "connect timeout second")
	retry                   = flag.Int("retry", 10, "retry interval second. -1=disabled")
)

var (
	localRemotes []string
)

func init() {
	flag.Usage = func() {
		flag.PrintDefaults()
	}
	flag.Parse()
	if len(*server) == 0 {
		flag.Usage()
		os.Exit(0)
	}
	if *help {
		flag.Usage()
		os.Exit(0)
	}
	localRemotes = flag.Args()
}
